//
//  LSZDaysRecordsTableViewCell.m
//  JKFuYinProject
//
//  Created by 九酷 on 2018/6/7.
//  Copyright © 2018年 LC. All rights reserved.
//

#import "LSZDaysRecordsTableViewCell.h"

@implementation LSZDaysRecordsTableViewCell

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.labelTitle = [[UILabel alloc]init];
        self.labelTitle.textColor = titleColorLSZ;
        [self addSubview:self.labelTitle];

        self.butSignIn = [[UIButton alloc]init];
        self.butSignIn.titleLabel.textAlignment = NSTextAlignmentRight;
        [self.butSignIn setTitle:@"我的签到记录>" forState:UIControlStateNormal];
        [self.butSignIn setTitleColor:redUIColor forState:UIControlStateNormal];
        [self addSubview:self.butSignIn];
//        UIView * viewFen = [[UIView alloc]init];
//        viewFen.backgroundColor = [UIColor yellowColor];
//        [self addSubview:viewFen];

        if (ScreenWidth == 320) {
            //5
            self.labelTitle.font = FONT_(13.5);
            self.butSignIn.titleLabel.font = FONT_(13.5);

            self.labelTitle.frame = CGRectMake(14,6,ScreenWidth/3*2-14 ,28);
            self.butSignIn.frame = CGRectMake(ScreenWidth/3*2,0,ScreenWidth/3-15,39.5);
//            viewFen.frame = CGRectMake(0, 39.5, ScreenWidth, 0.5);

        }else if(ScreenWidth == 375){
            // 6 7
            self.labelTitle.font = FONT_(14);
            self.butSignIn.titleLabel.font = FONT_(14);

            self.labelTitle.frame = CGRectMake(14,10,ScreenWidth/3*2-14 ,30);
           
            self.butSignIn.frame = CGRectMake(ScreenWidth/3*2,0,ScreenWidth/3-15,49.5);
//            viewFen.frame = CGRectMake(0, 49.5, ScreenWidth, 0.5);
        }else {
            //plus
            self.labelTitle.font = FONT_(14.5);
            self.butSignIn.titleLabel.font = FONT_(14.5);

            self.labelTitle.frame = CGRectMake(14,12,ScreenWidth/3*2-14 ,34);
        

            self.butSignIn.frame = CGRectMake(ScreenWidth/3*2,0,ScreenWidth/3-15,57.5);
//            viewFen.frame = CGRectMake(0, 57.5, ScreenWidth, 0.5);
        }
    }
    return self;
}

@end
